home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15343 < prev    next >
Encoding:
Text File  |  1996-08-05  |  751 b   |  20 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cdf.toronto.edu!a209dowm
  3. From: a209dowm@cdf.toronto.edu (P A U L)
  4. Subject: how many characters have been read from ifstream?
  5. Message-ID: <DpCyDr.5yK@cdf.toronto.edu>
  6. Sender: a209dowm@cdf.toronto.edu (Dowman Paul)
  7. Nntp-Posting-Host: quince
  8. Organization: University of Toronto Computing Disciplines Facility
  9. Date: Thu, 4 Apr 1996 21:58:35 GMT
  10.  
  11. is there any way to check how many characters have been read from an ifstream?
  12.  
  13. The reason I want to know is because my program is processing a file, and about
  14. halfway through the file in_stream.eof() returns 1 (the ifstream object is named
  15. in_stream).  I'm certain that it's only halfway through the file, because I've
  16. stepped through the program line-by-line.
  17.  
  18. thanks,
  19. Paul.
  20.